package com.kuang.dao;

import com.kuang.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

    //add a book
    int addBook(Books books);

    //delete a book
    int deleteBook(@Param("bookID") int id);

    //update information
    int updateBook(Books books);

    //query a book
    Books queryBookByIdBook(@Param("bookID") int id);

    //query all
    List<Books> queryAllBooks();


}
